#ifndef TIPDIALOG_H
#define TIPDIALOG_H

#include <QDialog>

namespace Ui {
class TipDialog;
}

class TipDialog : public QDialog
{
    Q_OBJECT

public:
    static TipDialog* GetInstance(QWidget *parent = nullptr);
    ~TipDialog();
    // 禁止拷贝和赋值
    TipDialog(const TipDialog&) = delete;
    TipDialog& operator=(const TipDialog&) = delete;
    void SetText(const QString &title, const QString &text);

private slots:
    void on_pushButton_clicked();

private:
    explicit TipDialog(QWidget *parent = nullptr);
    Ui::TipDialog *ui;
};

#endif // TIPDIALOG_H
